﻿@model BLL.Services.LoginViewModel
@{
    ViewBag.Title = "登录";
}
<h2>登录</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="form-group">
        @Html.LabelFor(m => m.Username)
        @Html.TextBoxFor(m => m.Username, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Username)
    </div>

    <div class="form-group">
        @Html.LabelFor(m => m.Password)
        @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Password)
    </div>

    <div class="form-group">
        @Html.LabelFor(m => m.UserType)
        @Html.EnumDropDownListFor(m => m.UserType, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.UserType)
    </div>

    <button type="submit" class="btn btn-primary">登录</button>

    @Html.ValidationSummary()
}
<h2>Index</h2>

